package com.jenkins.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    private static final String VERSION = "v1.0";

    @GetMapping("/test")
    public String test(@RequestParam("name") String name) {
        return "Hello, " + name + " 当前项目版本: " + VERSION;
    }

}
